let p1 = new Promise((resolve,reject)=>{
  setTimeout(()=>{
    reject('p1-resolve')
  },1000)
});
let p2 = Promise.resolve('p2-resolve');
let p3 = Promise.resolve('p3-resolve');
let p = Promise.race([p1,p2,p3]);
console.log(p);